@import 'public.scss';
.container{
    width: 1200px;
    margin: 0 auto;
}
a:hover{
    color: #669900;
}
// 头部图片
.topshow{
    background: url(../img/headbg.jpg) center top no-repeat; 
    width: 100%;
    height: 80px;
    .close {
        position: absolute;
        display: inline-block;
        top: 5px;
        left: 50%;
        margin-left: 535px;
        width: 25px;
        height: 16px;
        background: url(../img/topclose.png) no-repeat center center;
        cursor: pointer;
        text-indent: -9999px;
    }
}
// 头部导航
nav{
    width: 100%;
    height: 33px;
    text-align: center;
    position: relative;
    z-index: 101;
    background: #f7f7f7;
    border-bottom: 1px solid #eeeeee;
    
    li{
        float: left;
        position: relative;
        line-height: 33px;
        &:nth-of-type(1){
            color: #969696;
        }
        &:nth-of-type(2){
            p{
                width: 50px;
                height: 20px;
                line-height: 20px;
                border: 1px solid #DCDCDC;
                position: relative;
                margin: 6px 0 0 0;
                overflow: hidden;
                &:hover{
                    background: white;
                }
                &:hover>b{
                    transform: rotate(180deg);
                }
                span{
                    margin: 0 0 0 5px;
                    width: 30px;
                    overflow: hidden;
                    display: block;
                    color: #333333;
                }
                b{
                    background: url(../img/header.png) no-repeat -86px -130px;
                    width: 8px;
                    height: 4px;
                    position: absolute;
                    top: 7px;
                    right: 5px;
                }
            }
            .dd {
                z-index: 2;
                background: white;
                display: none;
                position: absolute;
                width: 438px;
                border: 1px solid #DCDCDC;
                text-align: left;
                margin: 0;
                .city_top {
                    margin: 5px 10px 5px 10px;
                    height: 30px;
                    border-bottom: 1px solid #DCDCDC;
                    line-height: 30px;
                    span{
                        float: left;
                        color: #969696;
                    }
                    .off{
                        float: right;
                        background: url(../img/index_icon_new.png) -245px -33px no-repeat;
                        width: 18px;
                        height: 18px;
                        margin: 5px 0 0 0;
                        cursor: pointer;
                    }
                }
                .city_middle {
                    margin: 0px 10px 5px 10px;
                    li {
                        width: 38px;
                        float: left;
                        position: relative;
                        line-height: 33px;
                        a {
                            color: #0099FF;
                        }
                    }
                }
                .clear {
                    clear: both;
                    padding: 0px;
                    font-size: 0px;
                    margin: 0px;
                    height: 0px;
                    line-height: 0;
                    overflow: hidden;
                    display: block;
                }
                .city_bottom {
                    margin: 5px 10px 15px 10px;
                    color: #969696;
                    .quyu {
                        float: left;
                        height: 25px;
                        line-height: 25px;
                        color: #969696;
                    }
                    ul {

                        li {
                            width: 40px;
                            text-align: center;
                            height: 25px;
                            line-height: 22px;
                            cursor: pointer;
                            color: #333333;
                        }
                    }
                }
            }

        }
    }
    .navRight{
        li {
            float: left;
            position: relative;
            line-height: 33px;
            padding: 0 10px;
        }
        a{
            color: #969696;
            &:hover{
                color: #669900;
            }
        }
        .dl,span{
            float: left;
        }
        .exit{
            float: left;
            display: none;
        }
        float: right;
        .login{
            color: #999999;
            padding: 0 10px;
            .newregbox {
                position: relative;
                display: inline-block;
                .newregdiv {
                    width: 147px;
                    cursor: pointer;
                    height: 34px;
                    text-align: center;
                    position: absolute;
                    top: 27px;
                    left: -63px;
                    .up-icon {
                        display: inline-block;
                        width: 11px;
                        height: 7px;
                        background: url(http://i.sfimg.cn/html/images/regicon-top.png) left top;
                        position: absolute;
                        top: 0;
                        left: 75px;
                    }
                    .newregTips{
                        display: inline-block;
                        margin-top: 7px;
                    }
                    .newwords {
                        color: #fff;
                        font-size: 12px;
                        height: 22px;
                        float: left;
                        padding: 0 8px;
                        min-width: 60px;
                        text-align: left;
                        overflow: hidden;
                        background: #f14431;
                        border-radius: 10px;
                        line-height: 22px;
                        
                    }
                }
            }
        }
        .allCat{
            &:hover>b{
                transform: rotate(180deg);
            }
            &:hover>.dd{
                display: block;
            }
            b{
                background: url(../img/header.png) no-repeat -86px -130px;
                width: 8px;
                transition: transform .2s ease-in 0s;
                height: 4px;
                position: absolute;
                top: 12px;
            }
            .dd{
                display: none;
                position: absolute;
                background: white;
                z-index: 2;
                top: 28px;
                width: 815px;
                right: 0;
                margin-right: -10px;
                left: auto;
                padding-top: 10px;
                box-shadow: 0 0 5px #dadada;
                dl {
                    float: left;
                    width: 200px;
                    padding: 15px 19px 0 20px;
                    text-align: left;
                    margin-bottom: 10px;
                    dt {
                        font-weight: bold;
                        margin-bottom: 5px;
                        font-size: 16px;
                    }
                    .dh1{
                        color: #669900;
                    }
                    .dh2{
                        color: #FA6400;
                    }
                    .dh3 {
                        color: #646464;
                    }
                }
                .line {
                    background: url(http://i.sfimg.cn/html/images/foot/line.jpg) center repeat-y;
                    height: 90px;
                    width: 5px;
                    margin: 20px 0 ;
                }
            }
        }
        .menus{
            &:hover>.dd{
                display: block;
            }
            &:hover>b{
                transform: rotate(180deg);
            }
            b {
                position: absolute;
                right: 1px;
                top: 13px;
                background: url(../img/header.png) no-repeat -86px -130px;
                width: 8px;
                height: 4px;
                transition: transform .2s ease-in 0s;
                overflow: hidden;
            }
            .dd {
                background: white;
                display: none;
                position: absolute;
                margin-left: 5px;
                line-height: 22px;
                left: 0;
                width: 78px;
                box-shadow: 0 0 5px #dadada;
                top: 28px;
            }
        }
        .d2{
            span{
                display: inline-block;
                background: url(../img/header.png) no-repeat -73px -122px;
                width: 10px;
                left: 10px;
                margin: 8px;
                height: 16px;
                transition: all 0.2s ease 0s;
            }
            &:hover>span{
                background: url(../img/header.png) no-repeat -73px -138px;
            }
            &:hover>.dd{
                display: block;
            }
            .dd{
                display: none;
            }
            img{
                position: absolute;
                left: -62px;
                width: 230px;
            }
        }
        .d3{
            width: 19px;
            height: 16px;
            margin-left: 3px;
            q {
                height: 16px;
                position: absolute;
                top: 9px;
                background: url(../img/header.png) no-repeat -55px 0;
                width: 100%;
                left: 12px;
                cursor: pointer;
                quotes: none;
            }
        }
        .wx{
            width: 19px;
            height: 16px;
            q {
                height: 16px;
                position: absolute;
                top: 9px;
                background: url(../img/header.png) no-repeat -74px 0;
                width: 100%;
                left: 12px;
                cursor: pointer;
                quotes: none;
            }
        }
    }
    
}
// 搜索框
.head-inner{
    position: relative;
    height: 104px;
    img{
        width: 240px;
        margin: 0px;
        float: left;
        padding: 5px 0px 0px 0px;
        position: relative;
    }
    .search{
        position: relative;
        margin: 30px 140px;
        float: left;
    }
    form{
            border: 1px solid #669900;
            padding: 0 0 0 4px;
            vertical-align: middle;
            float: left;
            a{
                margin: 0px;
                height: 35px;
                width: 80px;
                cursor: pointer;
                float: right;
                vertical-align: middle;
                border: 0;
                background: url(../img/header.png) no-repeat -99px -179px;
                color: #FFF;
            }
    }
    .search_hot {
        position: absolute;
        text-align: left;
        padding: 4px 0px 0px 0px;
        top: 40px;
    }
    input{
        width: 425px;
        height: 34px;
    }
    .shopingcar{
        margin-left: 10px;
        margin-top: 30px;
        float: right;
        border: 1px solid #efefef;
        line-height: 33px;
        font-size: 12px;
        p{
            margin-left: 10px;
            &::before{
                content: '';
                display: inline-block;
                background: url(../img/header.png) no-repeat -102px -235px;
                width: 23px;
                height: 21px;
                margin: 2px 0 0 0;
                vertical-align: middle;
            }
        }
        #cartNum {
            display: inline-block;
            width: 40px;
            height: 35px;
            text-align: center;
            line-height: 34px;
            background-color: #fa9600;
            color: white;
            font-size: 16px;
            font-weight: 600;
        }
    }
}
// 导航
.mainNav {
    width: 100%;
    height: 32px;
    border-bottom: 2px solid #679800;
    .navmenu {
        // position: relative;
        margin: 0px auto;
        color: #303437;
        padding: 0;
        width: 1200px;
        clear: both;
        .categories {
            float: left;
            width: 200px;
            background: #679800;
            height: 34px;
            text-align: left;
            position: relative;
            z-index: 100;
        }
        .dt {
            height: 34px;
            overflow: hidden;
            a {
                height: 32px;
                line-height: 32px;
                display: block;
                margin: 0px;
                padding: 0px;
                color: #fff;
                font-size: 14px;
                font-weight: bold;
                width: 200px;
                text-align: center;
                text-decoration: none;
            }
        }
        .menu1 {
            width: 1000px;
            float: right;
            position: relative;
            z-index: 30;
            ul {
                width: 1000px;
                overflow: hidden;
                height: 32px;
                line-height: 32px;
                li {
                    float: left;
                    text-align: center;
                    color: #303437;
                    .sy {
                        color: #669900;
                    }
                    a {
                        padding: 0 24px;
                        font-size: 14px;
                        text-align: center;
                        text-decoration: none;
                        display: block;
                        height: 32px;
                        color: #333;
                        font-weight: 700;
                        &:hover{
                            color: #669900;
                        }
                    }
                }
                .ad {
                    float: right;
                    width: 196px;
                    height: 32px;
                    overflow: hidden;
                    img {
                        width: 196px;
                        height: 32px;
                    }
                }
            }
        }
    }
    .trackref {
        color: white;
        margin-left: 2px;
        &:hover {
            text-decoration: underline;
        }
    }
    #allSort {
        display: none;
        margin: 0;
        z-index: 998;
        padding: 0;
        width: 200px;
        height: 480px;
        position: absolute;
        background-color: #76ac25;
        #booksort {
            padding-top: 8px;
            padding-left: 15px;
            .item {
                height: 58px;
                text-align: left;
                &:hover .i-cm {
                    display: block;
                }
                &:hover {
                    padding-left: 10px;
                    // color: #76ac25;
                    background-color: white;
                    color: #76ac25;
                    margin-left: -10px;
                }
                &:hover .i-master .dev .trackref {
                    color: #76ac25;
                }
                &:hover .subCat li .trackref {
                    color: #76ac25;
                }
                &:hover .i-master .dev .fresh {
                    background: url(../img/left_lm_m.png) no-repeat 0 5px;
                }
                &:hover .i-master .dev .fresh1 {
                    background: url(../img/left_lm_m.png) no-repeat 0 -159px;
                }
                &:hover .i-master .dev .fresh2 {
                    background: url(../img/left_lm_m.png) no-repeat 0 -324px;
                }
                &:hover .i-master .dev .fresh3 {
                    background: url(../img/left_lm_m.png) no-repeat 0 -47px;
                }
                &:hover .i-master .dev .fresh4 {
                    background: url(../img/left_lm_m.png) no-repeat 0 -106px;
                }
                &:hover .i-master .dev .fresh5 {
                    background: url(../img/left_lm_m.png) no-repeat 0 -270px;
                }
                &:hover .i-master .dev .fresh6 {
                    background: url(../img/left_lm_m.png) no-repeat 0 -213px;
                }
                &:hover .i-master .dev .fresh7 {
                    background: url(../img/left_lm_m.png) no-repeat 0 -378px;
                }
                .i-master {
                    position: absolute;
                    display: block;
                    height: 54px;
                    padding-left: 15px;
                    .dev {
                        font-weight: normal;
                        font-size: 14px;
                        padding-top: 5px;
                        line-height: 22px;
                        @extend .trackref;
                        .fresh {
                            width: 16px;
                            height: 22px;
                            background: url(../img/left_lm_m_a.png) no-repeat 0 5px;
                            margin-left: -20px;
                            float: left;
                        }
                        .fresh1 {
                            @extend .fresh;
                            background: url(../img/left_lm_m_a.png) no-repeat 0 -159px;
                        }
                        .fresh2 {
                            @extend .fresh;
                            background: url(../img/left_lm_m_a.png) no-repeat 0 -324px;
                        }
                        .fresh3 {
                            @extend .fresh;
                            background: url(../img/left_lm_m_a.png) no-repeat 0 -47px;
                        }
                        .fresh4 {
                            @extend .fresh;
                            background: url(../img/left_lm_m_a.png) no-repeat 0 -106px;
                        }
                        .fresh5 {
                            @extend .fresh;
                            background: url(../img/left_lm_m_a.png) no-repeat 0 -270px;
                        }
                        .fresh6 {
                            @extend .fresh;
                            background: url(../img/left_lm_m_a.png) no-repeat 0 -213px;
                        }
                        .fresh7 {
                            @extend .fresh;
                            background: url(../img/left_lm_m_a.png) no-repeat 0 -378px;
                        }
                    }
                    .subCat {
                        font-size: 12px;
                        overflow: hidden;
                        line-height: 20px;
                        height: 20px;
                        li {
                            float: left;
                            margin-right: 8px;
                            a {
                                color: #ddeac8;
                                &:hover {
                                    text-decoration: underline;
                                }
                            }
                        }
                    }
                }
                .i-cm {
                    position: absolute;
                    top: 0;
                    left: 200px;
                    width: 560px;
                    height: 480px;
                    background: white;
                    z-index: 999;
                    opacity: 0.98;
                    display: none;
                    .i-left {
                        float: left;
                        width: 542px;
                        .cat-sort {
                            width: 542px;
                            height: 248px;
                            padding: 8px 0 24px 10px;
                            dl {
                                overflow: hidden;
                                zoom: 1;
                                padding: 1px 0 0 0;
                                dt {
                                    width: 80px;
                                    padding-right: 10px;
                                    float: left;
                                    text-align: right;
                                    height: 18px;
                                    line-height: 18px;
                                    margin: 4px 0px;
                                    .trackref {
                                        color: #76ac25;
                                    }
                                }
                                dd {
                                    overflow: hidden;
                                    zoom: 1;
                                    a {
                                        float: left;
                                        white-space: nowrap;
                                        display: block;
                                        text-decoration: none;
                                        font-size: 12px;
                                        height: 18px;
                                        line-height: 18px;
                                        margin: 4px 0px;
                                        text-align: left;
                                        padding: 0px 6px;
                                        border-left: 1px solid #ccc;
                                        color: #666;
                                        &:hover {
                                            color: #76ac25;
                                        }
                                    }
                                }
                            }
                        }
                    }
                    .i-right {
                        float: right;
                        width: 205px;
                        height: 506px;
                        .i-close {
                            width: 25px;
                            height: 25px;
                            position: absolute;
                            top: 6px;
                            right: 6px;
                            background: url(../img/index_icon_new.png) no-repeat -245px -1px;
                            cursor: pointer;
                        }
                    }
                }
            }
        }
    }
}

/*放大区域*/
.shopmain{
    width: 1200px;
    margin:0 auto;
    height:500px;
    border: 1px solid #ccc;
    >h2{
        display: inline-block;
        font-weight: bold;
    }
    .left{
        float: left;
        position: relative;
        width: 330px;
        height: 440px;
        p{
            color:red;
            position: absolute;
            bottom:-40px;
            left:100px;
            font-size: 20px;
            font-weight: bold;
        }
        .left_1{
            width: 330px;
            height: 330px;
            position: absolute;
            top: 50px;
            #smallarea{
                width: 200px;
                height: 200px;
                position: absolute;
                top:0;
                left:0;
                background: rgba(255,255,255,.5);
                display: none;
            }
            #smallimg{
                width: 330px;
                height:330px;
                position: absolute;
            }
        }
    }
    .right{
        float: left;
        position: relative;
        width: 568px;
        height: 440px;
        margin-left:30px;
        box-shadow: 0 0 4px #c7c7c7;
        .right_1{
            position: relative;
            z-index: -1;
        }
        #bigarea{
            display: block;
            width: 400px;
            height: 400px;
            position: absolute;
            overflow: hidden;
            #bigimg{
                width: 600px;
                height: 600px;
                position: absolute;
                display: none;
            }
        }
        .right_2{
            width: 568px;
            height: 337px;
            position: relative;
            input{
                border: 1px solid #eeeeee;
            }
            h3{
                width: 568px;
                height: 37px;
                line-height: 37px;
                font-size:24px;
                span{
                    display: inline-block;
                    width: 37px;
                    height: 18px;
                    font-size: 14px;
                    line-height: 18px;
                    background: green;
                    color: #FFFFFF;
                }
                h3{
                   float: left;
                }
            }
            .top{
                width: 568px;
                height: 93px;
                background: orange;
                color:#FFFFFF;
                position: relative;
                span{
                    display: block;
                    float: left;
                    margin-top:55px;
                    margin-right:10px;
                    &:nth-of-type(3){
                        font-size: 36px;
                        margin-top:30px;
                        font-weight: bolder;
                    }
                }
                a{
                    display: block;
                    width:86px;
                    height:24px;
                    background: yellow;
                    color:red;
                    text-align: center;
                    line-height: 24px;
                    position: absolute;
                    top:30px;
                    right:100px
                }
            }
            .middle{
                width: 568px;
                height: 100px;
                padding-left:20px;
                p{
                    margin:20px 0;
                    &:nth-of-type(2) input{
                        margin-right:10px;
                        &:nth-of-type(2){
                            border: 1px solid green;
                        }
                    }
                }
                .pj{
                    font-weight: bold;
                    font-size: 20px;
                    color: orange;
                }
            }
            .bottom{
                width: 568px;
                padding-left:20px;
                padding-top: 20px;
                div{
                    width: 80px;
                    float: left;
                }
                input{
                    width: 55px;
                    height: 46px;
                    float: left;
                    text-align: center;
                    line-height: 46px;
                }
                .add,.jian{
                    width:23px ;
                    height: 23px;
                }
                #addcars{
                    float: left;
                    display: block;
                    width: 160px;
                    height: 45px;
                    background: #4cae4c;
                    text-align: center;
                    line-height: 45px;
                    margin-right: 10px;
                    cursor: pointer;
                }
                span:nth-of-type(2){
                    float: left;
                    display: block;
                    width: 130px;
                    height: 45px;
                    background: orange;
                    text-align: center;
                    line-height: 45px;
                    margin-right: 10px;
                }
                .sm{
                    text-decoration: none;
                    display: block;
                    width: 126px;
                    height: 45px;
                    text-align: center;
                    line-height: 20px;
                    float: left;
                    border: 1px solid #ccc;
                    span{
                        color:red;
                        display:block
                    }
                }
                
                
            }
        }
    }
    .shopmainside{
        width: 222px;
        height: 420px;
        float: left;
        margin-left: 20px;
        .top{
            width: 222px;
            height: 86px;
            margin: 10px 0;
            li{
                float: left;
                margin:0 10px;
            }
        }
        .middle{
            width: 222px;
            height: 166px;
            padding-left: 10px;
            li{
                margin-top:10px;
                &:nth-of-type(5){
                    border: 1px solid #ccc;
                    height: 30px;
                    line-height: 30px;
                    width: 200px;
                    border-radius: 10px;
                    position: relative;
                    text-align: right;
                    span{
                        display: block;
                        width: 80px;
                        height: 30px;
                        position: absolute;
                        background: red;
                        color:#FFFFFF;
                        border-radius: 10px;
                        text-align: center;
                    }
                }
            }
        }
        .bottom{
            width: 222px;
            height: 148px;
            padding-left: 10px;
            >span{
                display: block;
                width: 190px;
                height: 80px;
                border: 1px orange solid;
                padding: 5px;
            }
            .scrollNews{
                border: 1px orange solid;
                height: 80px;
                overflow: hidden;
                li{
                    height: 20px;
                    line-height: 20px;
                }
            }
            p{
                span{
                    display: inline-block;
                    background: orange;
                    margin-left:5px;
                    width: 100px;
                    height: 10px;
                }
                b{
                    font-weight: bold;
                    color: orange;
                    font-size: 26px;
                }
                &:nth-of-type(2){
                    color:green;
                    margin:5px 0;
                }
            }
        }
    }
}

// 侧边栏
.side-wrap{
    position: fixed;
    bottom: 20px;
    left: 50%;
    margin-left: 610px;
    z-index: 999;
        a{
            margin-top: 6px;
            width: 44px;
            height: 44px;
            display: block;
        }
        .kefuicon {
            background: url(http://i.sfimg.cn/html/images/index_kefu.png) center center no-repeat;
        }
        .side_v{
            background: url(http://i.sfimg.cn/html/images/paid/paid_bg.png) no-repeat -41px -182px;
        }
        .s-cart {
            background: url(http://i.sfimg.cn/html/images/productList.png) no-repeat 0 -45px;
        }
        .s-guang {
            background: url(http://i.sfimg.cn/html/images/productList.png) no-repeat -42px -82px;
        }
        .s-app {
            background: url(http://i.sfimg.cn/html/images/productList.png) no-repeat -42px -40px;
            text-indent: -999px;
        }
        .s-promote {
            background: url(../img/sf_new_bg.png) no-repeat 0 -27px;
            text-indent: -9999px;
        }
        .s-top{
            background: url(http://i.sfimg.cn/html/images/productList.png) no-repeat 0 -82px;
        }
}
// 页脚
footer{
    clear: both;
    .middle{
        float: left;
        width: 290px;
        height: 145px;
        margin: 20px 0px 0px 10px;
        background: url(http://i.sfimg.cn/html/images/foot/logo.jpg) no-repeat left top;
    }
    ul{
        padding: 85px 0 0 0;
    }
    .kefu {
        font-size: 20px;
        color: #646464;
        font-weight: bold;
        padding: 6px 0;
    }
    .right{
        float: left;
        margin: 35px 0 0 0;
        width: 645px;
        ul {
            float: left;
            margin: 0px 8px 0px 0px;
            padding: 0px 0px 0px 0px;
            width: 120px;
            .title {
                color: #707070;
                font-weight: bold;
                font-size: 14px;
            }
            li {
                text-align: left;
                height: 24px;
                line-height: 24px;
                color: #646464;
            }
        }
    }
    .left {
        float: left;
        margin: 35px 0 0 0;
        width: 235px;
        height: 145px;
        .f_ios{
            margin: 0 50px 8px 0;
        }
        ul {
            margin: 0px;
            padding: 0px 0px 0px 0px;
            float: left;
            width: 80px;
            
            li {
                width: 80px;
                text-align: center;
                line-height: 24px;
                float: left;
            }
            span {
                display: block;
                width: 80px;
                height: 80px;
                background: url(http://i.sfimg.cn/html/images/foot_bottom.png) no-repeat 0px 0px;
                margin: auto;
            }
        }
        .f_wx span {
            background: url(http://i.sfimg.cn/html/images/foot_bottom.png) no-repeat -83px 0px;
        }
    }
    .foot-bottom{
        clear: both;
        height: 50px;
        margin: 0px auto;
        border-top: 1px solid #E0E0E0;
        padding-top: 15px;
        position: relative;
        img{
            float: left;
            width:94px; 
            height:33px;
            margin-left: 5px;
        }
        .siteinfo{
            float:left; 
            position: absolute; 
            top: 13px; 
            left: 280px;
            padding:0 20px;
            span {
                padding-left: 13px;
            }
        }
    }
}